package com.sjd.farm.service;

import com.sjd.common.core.domain.AjaxResult;
import com.sjd.farm.domain.dto.order.WxFarmOrderCreateRequestDTO;
import com.sjd.farm.domain.dto.order.WxFarmOrderQryResponseDTO;
import com.sjd.mall.domain.dto.base.OrderNoRequestDTO;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 农场订单
 *
 * @author seer
 * @version 1.0
 * @date 2022/1/28 14:33
 */
public interface WxFarmOrderService {

    /**
     * 订单创建
     *
     * @return object
     */
    AjaxResult create(WxFarmOrderCreateRequestDTO requestDTO);

    /**
     * 订单支付
     *
     * @param requestDTO requestDTO
     * @return object
     */
    AjaxResult pay(OrderNoRequestDTO requestDTO);

    /**
     * 订单查询
     *
     * @return object
     */
    List<WxFarmOrderQryResponseDTO> qry();

    /**
     * 订单自动取消,定时任务
     */
    void cancelQuartz();
}